<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
</head>
<body>
  <h1>用户列表</h1>
  <div>
     <ul>
      <li>
             <span>id</span>-
             <span>用户名</span>-
             <span>密码</span>
         </li>
         
         <li th:each="user:${userList}">
             <span th:text="${user.id}"></span>-
             <span th:text="${user.userName}"></span>-
             <span th:text="${user.passWord}"></span>
         </li>
     </ul>
   </div>
</body>
</html>